package com.xyht.sca_s.student_manage_system.modules.org.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 组织架构
 * </p>
 *
 * @author XYHT
 * @since 2022-11-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sms_org_structure")
@ApiModel(value="SmsOrgStructure对象", description="组织架构")
public class SmsOrgStructure implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "父级id")
    private Integer parentId;

    @ApiModelProperty(value = "机构名称")
    private String orgName;

    @ApiModelProperty(value = "层级")
    private String level;

    @ApiModelProperty(value = "机构简介")
    private String orgInfo;

    @ApiModelProperty(value = "负责人")
    private String leader;

    @ApiModelProperty(value = "组织名缩写（小于等于四字）")
    private String orgSimpleName;

    private Integer isOpen;

    @ApiModelProperty(value = "根组织id")
    private Integer rootParentId;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "能否删除  1：能删除  0：不能删除")
    private Integer canDeleted;

    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
